<?php
	$columns = $adminDB->executeSQL("select distinct m.id, m.fdName from ".$util->contentdbName().".tbColumn m order by m.id", $connID);	
	$smarty->assign('columns', $columns);
	
	if(isset($_SESSION['un']) && $_SESSION['un']!='')
	{
		$logname = $_SESSION['un'];
		$smarty->assign('logname', $logname);
	}	
	$smarty->display ( 'navigation_left.html' );
	$smarty->display ( 'navigation_right.html' );
	
	$requestPageName = basename ( $_SERVER ['PHP_SELF'] );
	switch ($requestPageName) 
	{
		case 'index.php' :
				$tips='欢迎光临正版软件商店';
			break;		
		case 'cart.php':
		case 'store.php':
		case 'confirm.php':
		case 'details.php':	
		case 'quickbuy.php':
				$tips='您现在的位置: <a href="index.php">首页</a> > 在线商店';		
			break; 		
		case 'login.php':
		case 'register.php':
		case 'usership.php':
		case 'userorder.php':
		case 'usercenter.php':
		case 'usermanage.php':
		case 'userpassword.php':
				$tips='您现在的位置: <a href="index.php">首页</a> > 会员中心';	
			break;
		case 'about.php':
		case 'about-news.php':
		case 'about-social.php':
		case 'about-contact.php':
				$tips='您现在的位置: <a href="index.php">首页</a> > 关于我们';
			break;
		case 'legalization.php':
				$tips='您现在的位置: <a href="index.php">首页</a> > 正版化方案';
			break;
		case 'protocal.php':
				$tips='您现在的位置: <a href="index.php">首页</a> > 隐私协议';
			break;
	}
	$smarty->assign('tips', $tips);	
	$smarty->display ( 'navigation_tips.html' );
?>